Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If string has a range in first interval don't render "de" #292

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

wlribeiro
Copy link
Contributor

This pull request addresses an issue where double occurrences of "de" were introduced during the conversion of certain cron expressions to text in the pt_BR locale. The proposed changes ensure that the double "de" is prevented, specifically when a range is present at the beginning of the string.

expression response expected
* * * 1-4,7 somente de de segunda-feira a sexta-feira e domingo somente de segunda-feira a sexta-feira e domingo
* * * 1-4,6 * a cada dia, somente em de janeiro a abril e junho a cada dia, somente de janeiro a abril e junho

@bradymholt
Copy link
Owner

Thanks!

@bradymholt bradymholt merged commit 851966f into bradymholt:main Aug 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants